import { buildGetUrl } from '@/core/http/requestUrl.js';

export default class ProjectController {
  static list(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/project/list', 'post', params, axiosOption, httpOption);
  }

  static view(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/project/view', 'get', params, axiosOption, httpOption);
  }

  static export(sender, params, fileName) {
    return sender.download('/admin/app/project/export', params, fileName);
  }

  static import(sender, params) {
    return sender.upload('/admin/app/project/import', params);
  }

  static printUrl(params) {
    return buildGetUrl('/admin/app/project/print', params);
  }
  static add(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/project/add', 'post', params, axiosOption, httpOption);
  }

  static update(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/project/update', 'post', params, axiosOption, httpOption);
  }
  static delete(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/project/delete', 'post', params, axiosOption, httpOption);
  }

  static deleteBatch(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/project/deleteBatch', 'post', params, axiosOption, httpOption);
  }
}
